package com.yx.controller;

import com.yx.data.Result;
import com.yx.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zcz
 */
@RestController
@RequestMapping("/sys/menu")
public class SysMenuController {
    @Autowired
    SysMenuService sysMenuService;

    /**
     * 当前登录人拥有的菜单
     * @return
     */
    @GetMapping("/getDisplayMenus")
    public Result getDisplayMenus() {
        return sysMenuService.getDisplayMenus();
    }
}
